//
//  M1PhotoAlbumLayout.h
//  NewMarryU
//
//  Created by Cedar on 2018/7/16.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface M1PhotoAlbumLayout : UICollectionViewLayout

/**
 *  列数
 */
@property (nonatomic, assign) NSInteger m1_lineNumber;
/**
 *  行间距
 */
@property (nonatomic, assign) CGFloat m1_rowSpacing;
/**
 *  列间距
 */
@property (nonatomic, assign) CGFloat m1_lineSpacing;
/**
 *  内边距
 */
@property (nonatomic, assign) UIEdgeInsets m1_sectionInset;
/**
 *  对象方法
 *
 *  @param block 在block中最后要返回一个item的高度
 */
- (void)m1_computeIndexCellHeightWithWidthBlock:(CGFloat(^)(NSIndexPath *indexPath , CGFloat width))block;

@end
